<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\UserProfilePermissionRepository")
 * @Table(name="user_profile_permission")
 */
class UserProfilePermission {
	/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

/**
 * 
 * @ManyToOne(targetEntity="Profile")
 * @JoinColumn(name="profile_id", referencedColumnName="id")
 */
	protected $profile;

	/**
 * 
 * @ManyToOne(targetEntity="Permission")
 * @JoinColumn(name="permission_code", referencedColumnName="code")
 */
	protected $permission;


	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setProfile($profile)
	{
	    $this->profile = $profile;
	}
 
	public function getProfile()
	{
	    return $this->profile;
	}

	public function setPermission($permission)
	{
	    $this->permission = $permission;
	}
 
	public function getPermission()
	{
	    return $this->permission;
	}
	
}